xen: arm: only put_page for p2m operations which require it.
authorIan Campbell <ian.campbell@citrix.com>
Wed, 9 Jul 2014 12:07:42 +0000 (13:07 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 10 Jul 2014 09:41:53 +0000 (10:41 +0100)
commita931087092db0a58e3ef4b1a4da47a9796d86f61
tree2b3660f8904e58d0b4ec63b8dcfa35eade0778d4
parent5305a316b4b73df6f48e42a9685744db086a3c3d
xen: arm: only put_page for p2m operations which require it.

In particular do not do it for CACHEFLUSH.

INSERT, RELINQUISH and REMOVE should all put the page (if the current pte is
valid). ALLOCATE doesn't need to since it asserts the current PTE must be
invalid.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
xen/arch/arm/p2m.c